import * as React from "react";
import { Component } from "react";
// import { Route, Redirect, Switch } from "react-router-dom";
// import A from "./compontent/A";

import B from "./compontent/B";
// import C from "./compontent/C";
// import D from "./compontent/D";

// import { asyncComponent } from "./compontent/asyncComponent";

// const Foo = asyncComponent(
//   () => import(/* webpackChunkName: "foo" */ "./compontent/B")
// );
class UrlRouter extends Component {
  render() {
    return (
      <>
        <B name={"牛逼"} age={12} />
      </>
    );
  }
  componentDidMount() {
    import("./compontent/C").then((res) => {
      console.log(res);
    });
  }
}

export default UrlRouter;
